package com.caine.payment.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.caine.payment.entity.Balance;
import com.caine.payment.mapper.BalanceMapper;
import com.caine.payment.service.IBalanceService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author   V   
 * @since 2021-01-04
 */
@Service
public class BalanceServiceImpl extends ServiceImpl<BalanceMapper, Balance> implements IBalanceService {

    public void selectPage(){
        this.baseMapper.selectPage(new Page<Balance>(1,10),new LambdaQueryWrapper<Balance>().eq(Balance::getUserId, 111L));
    }
}
